package src.main.java.org.File;
/*
* 方法递归
* */
public class Test3 {
    public static void main(String[] args) {
        test1(); //StackOverflowError
    }
    public static void test1(){
        System.out.println("test1");
        test1();//直接方法递归
    }

    public static void test2(){
        System.out.println("test1");
        test3();//间接方法递归
    }
    public static void test3(){
        System.out.println("test1");
        test2();//间接方法递归
    }
}
